import sys
while True:    next_line = sys.stdin.readline()    #if not next_line:
    #    break    sys.stdout.write(next_line)    sys.stdout.flush() # not calling flush() will cause it to hang here